package com.music.dao;

import com.music.entity.Album;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 肖泽强
 *
 * 专辑
 */
@Repository
public interface AlbumMapper {

    List<Album> findAlbumByConditions(Map<String,Object> map);

    /**
     * 根据主键查询专辑
     * @param albumId
     * @return
     */
    Album selectByPrimaryKey(String albumId);

    List<Album> findByCondition(Album album);

    /**
     * 根据条件统计
     * @param album
     * @return
     */
    int countByCondition(Album album);

    /**
     * 查找专辑购买量前五的专辑
     * @return
     */
    List<Album> findAlbumCount();
}
